Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
return -EFAULT;
*page = maddr_to_page(maddr);
- if ( !get_page(*page, current->domain) == 0 )
+ if ( !get_page(*page, current->domain) )
{
/*
* This page might be a page granted by another domain, or this page
free_domheap_page(page);
}
-static inline page_get_owner_and_reference(struct page_info *page)
+static inline struct domain *page_get_owner_and_reference(
+ struct page_info *page)
{
unsigned long x, y = page->count_info;
return 1;
put_page(page);
-fail:
+
/* if (!domain->is_dying) */ /* XXX: header inclusion hell */
gdprintk(XENLOG_INFO,
"Error pfn %lx: rd=%p, od=%p, caf=%016lx, taf=%" PRtype_info "\n",